projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
905a6aa
)
dialog: set suggested-action even on dialogs without header bars
author
William Jon McCann
<william.jon.mccann@gmail.com>
Thu, 27 Feb 2014 14:08:53 +0000
(09:08 -0500)
committer
William Jon McCann
<william.jon.mccann@gmail.com>
Thu, 27 Feb 2014 14:08:53 +0000
(09:08 -0500)
It is up to the theme whether these should be styled.
gtk/gtkdialog.c
patch
|
blob
|
history
diff --git
a/gtk/gtkdialog.c
b/gtk/gtkdialog.c
index 7efdebd870dbceeb650686998862d843c1510b34..04ae4a98b0daa5df26971adf63cee091bdd810aa 100644
(file)
--- a/
gtk/gtkdialog.c
+++ b/
gtk/gtkdialog.c
@@
-1125,8
+1125,7
@@
gtk_dialog_set_default_response (GtkDialog *dialog,
if (rd && rd->response_id == response_id)
{
gtk_widget_grab_default (widget);
- if (dialog->priv->constructed && dialog->priv->use_header_bar == 1)
- gtk_style_context_add_class (gtk_widget_get_style_context (widget), GTK_STYLE_CLASS_SUGGESTED_ACTION);
+ gtk_style_context_add_class (gtk_widget_get_style_context (widget), GTK_STYLE_CLASS_SUGGESTED_ACTION);
}
tmp_list = g_list_next (tmp_list);